<!--挂号订单-->
<template>
  <div>
    <!--某个订单详情-->
    <dic v-if="$route.query.orderId">
      <Detail></Detail>
    </dic>
    <!--展示全部订单信息-->
    <dic v-else>
      <AllOrder></AllOrder>
    </dic>
  </div>
</template>

<script setup lang="ts">

import {useRoute} from "vue-router";
import Detail from "@/views/user/order/detail.vue";
import AllOrder from "@/views/user/order/allOrder.vue";

//获取路由对象
let $route = useRoute();

</script>

<style scoped lang="scss">

</style>